package com.tarim.wheat.service.impl;

import com.tarim.wheat.mapper.FileMapper;
import com.tarim.wheat.model.File;
import com.tarim.wheat.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FileServiceImpl implements FileService {
    @Autowired
    FileMapper fileMapper;

    @Override
    public int insert(File record) {
        return fileMapper.insert(record);
    }

    @Override
    public List<File> selectByName(String fileName) {
        return fileMapper.selectByName(fileName);
    }
}
